namespace CSharpPro._0916;

public class Phone
{
    public string Brand { get; set; }
    public string Weight { get; set; }
    public int Camera { get; set; }
    public decimal Price { get; set; }

    public Phone(string brand, string weight, int camera, decimal price)
    {
        Brand = brand;
        Weight = weight;
        Camera = camera;
        Price = price;
    }

    public void Print()
    {
        Console.WriteLine("手机信息:");
        Console.WriteLine($"品牌(brand): {Brand}");
        Console.WriteLine($"重量(weight): {Weight}");
        Console.WriteLine($"后置摄像头像素(camera): {Camera}");
        Console.WriteLine($"价格(price): {Price}");
    }
}